package com.steak.integral.adapter;

import com.steak.common.domain.dataobject.tcc.Integral;
import com.steak.common.result.Response;
import com.steak.integral.execute.IntegralExecute;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 刘牌
 * @Title:
 * @date 2022/3/116:43
 */
@RequestMapping("/integral")
@AllArgsConstructor
@RestController
public class IntegralController {

    private final IntegralExecute integralExecute;

    @RequestMapping("/increaseIntegral")
    public Response increaseIntegral(@RequestBody Integral integral){
        return integralExecute.execute(integral);
    }
}
